//
//  MainViewController.h
//  CommuteWarriorUtility
//
//  Created by Rohit Mathews on 5/6/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import "FlipsideViewController.h"

@interface MainViewController : UIViewController <CLLocationManagerDelegate, FlipsideViewControllerDelegate> {
	IBOutlet UIImageView *bkgndImage;
	IBOutlet UIButton *startStopLogging;
	IBOutlet UILabel *applicationStatusLabel;
	//IBOutlet UIButton *hideApplicationButton;
	
	CLLocationManager *locationManager;
	
	NSString *logFilePath;
}

@property (retain, nonatomic) UIImageView *bkgndImage;
@property (retain, nonatomic) UIButton *startStopLogging;
@property (retain, nonatomic) UILabel *applicationStatusLabel;
@property (assign, nonatomic) CLLocationManager *locationManager;
@property (assign, nonatomic) NSString *logFilePath;

-(void)toggleButtonText;
-(IBAction)startLoggingPushed:(id)sender;
-(BOOL)isDeviceCharging;
-(BOOL)areBatteryPreferencesMet;
-(IBAction)showInfo:(id)sender;
-(void)updateApplicationStatusLabel;
-(void)localNotificationToUser:(BOOL)shouldDeliverNow;
//-(IBAction) hideApplication:(id)sender;

@end
